#coding=utf-8

from django.shortcuts import render
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.utils.decorators import *



def index(request):
    d = {
        'a': 'aaa',
        'b': 'bbb'
    }
    request.session['aa'] = 'aaa'
    print(request.GET.get('a'))
    # template_name[, context][, context_instance][, request][, using])[source]¶
    return render_to_response('index.html', {'aa': 'aa string', 'list1':[1, 2, 3]}, context_instance=RequestContext(request))
